<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.Calendar"%>
<%@ page import="edu.sysu.cshare.model.SubmitInfo"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:text name="title.homeworkDetails" /></title>
<script type="text/javascript" src="js/ajax.js">
	
</script>
    <link href="css/960.css" rel="stylesheet" type="text/css" />
    <link href="css/area.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="area.css" />
<style type="text/css">
    .style1
    {
        height: 45px;
        width: 224px;
    }
    .style2
    {
        width: 68px;
    }
    .style3
    {
        height: 45px;
        width: 68px;
    }
    .style4
    {
        width: 297px;
        height: 180px;
    }
    .style5
    {
        width: 224px;
    }
</style>
</head>
<body>
   <div id="container" class="container_12">
   <div id="head" class="grid_12">
     <center><font color="red" size="25px">CShare作业提交系统</font></center>
     <div id="logo" class="grid_3"></div>
     <div id="logoright" class="grid_8">
     </div>
     <div class="clear"></div>
   </div><!--end of head-->
   <div id=content class="grid_12">
	    <jsp:include page="top.jsp" flush="true" />
	<s:if test="user.role==7">
		<form action="homework!modifyHomework" method="post">
			<s:text name="label.courseName" />
			<s:select name="homework.course.id" list="courses" property="name" />
			<s:text name="label.teacher" />
			<s:textfield name="homework.course.teacher.name" size="22" />
			<br>
			<s:text name="label.homeworkDescription" />
			<s:textfield name="homework.descrip" size="50" />
			<br>
			<s:text name="label.startDate" />
			<s:textfield name="startDateStr" size="22" />
			<s:text name="label.dueDate" />
			<s:textfield name="dueDateStr" size="22" />
			<br>
			<s:text name="label.maxSize" />
			<s:textfield name="homework.maxSize" size="22" />
			<s:text name="label.extRestrict" />
			<s:textfield name="homework.extRestrict" size="22" />
			<br>
			<s:text name="label.submitMethod" />
			<s:textfield name="homework.submitMethod" size="22" />
			<s:checkbox name="homework.submitByGroup" />
			<s:text name="label.submitByGroup" />
			<br>
			<s:text name="label.remark" />
			<s:textfield name="homework.remark" size="50" />
			<br>
			<s:text name="label.dirPath" />
			<s:textfield name="homework.dirPath" size="50" />
			<br>
			<s:submit key="label.confirm" />
			<s:hidden name="userId" />
			<s:hidden name="showUnDone" />
			<s:hidden name="showDone" />
			<s:hidden name="homeworkId" />
		</form>
	</s:if>
	<s:else>
		<form action="homework!viewHomework" method="post">
			<s:text name="label.courseName" />
			<s:select name="homework.course.id" list="courses" property="name"
				readonly="true" />
			<s:text name="label.teacher" />
			<s:textfield name="homework.course.teacher.name" size="22"
				readonly="true" />
			<br>
			<s:text name="label.homeworkDescription" />
			<s:textfield name="homework.descrip" size="50" readonly="true" />
			<br>
			<s:text name="label.startDate" />
			<s:textfield name="startDateStr" size="22" readonly="true" />
			<s:text name="label.dueDate" />
			<s:textfield name="dueDateStr" size="22" readonly="true" />
			<br>
			<s:text name="label.maxSize" />
			<s:textfield name="homework.maxSize" size="22" readonly="true" />
			<s:text name="label.extRestrict" />
			<s:textfield name="homework.extRestrict" size="22" readonly="true" />
			<br>
			<s:text name="label.submitMethod" />
			<s:textfield name="homework.submitMethod" size="22" readonly="true" />
			<s:checkbox name="homework.submitByGroup" readonly="true" />
			<s:text name="label.submitByGroup" />
			<br>
			<s:text name="label.remark" />
			<s:textfield name="homework.remark" size="50" readonly="true" />
			<br>
			<s:text name="label.dirPath" />
			<s:textfield name="homework.dirPath" size="50" readonly="true" />
			<br>
			<s:submit key="label.confirm" />
			<s:hidden name="userId" />
			<s:hidden name="showUnDone" />
			<s:hidden name="showDone" />
		</form>
	</s:else>
   </div><!--content-->	
  </div>
</body>
</html>